package com.ys.entity.kefu;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TKF_KnowOpinion", catalog="Id")
public class TkfKnowOpinion extends BaseEntity<TkfKnowOpinion> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="KnowId", nameJava="knowId", typeDataBase="bigint")
	private Long knowId;
	@YsField(nameDataBase="Score", nameJava="score", typeDataBase="tinyint")
	private Integer score;
	@YsField(nameDataBase="Opinion", nameJava="opinion", typeDataBase="varchar")
	private String opinion;
	@YsField(nameDataBase="CreateUser", nameJava="createUser", typeDataBase="varchar")
	private String createUser;
	@YsField(nameDataBase="State", nameJava="state", typeDataBase="tinyint")
	private Integer state;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TkfKnowOpinion setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getKnowId() {
		return knowId;
	}
	public TkfKnowOpinion setKnowId(Long knowId) {
		this.knowId = knowId;
		return this;
	}
	public Integer getScore() {
		return score;
	}
	public TkfKnowOpinion setScore(Integer score) {
		this.score = score;
		return this;
	}
	public String getOpinion() {
		return opinion;
	}
	public TkfKnowOpinion setOpinion(String opinion) {
		this.opinion = opinion;
		return this;
	}
	public String getCreateUser() {
		return createUser;
	}
	public TkfKnowOpinion setCreateUser(String createUser) {
		this.createUser = createUser;
		return this;
	}
	public Integer getState() {
		return state;
	}
	public TkfKnowOpinion setState(Integer state) {
		this.state = state;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TkfKnowOpinion setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TkfKnowOpinion setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TkfKnowOpinion setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TkfKnowOpinion tkfKnowOpinion(
		Long knowId,
		Integer score,
		String opinion,
		String createUser,
		Integer state,
		Integer status
			) {
		TkfKnowOpinion entity = new TkfKnowOpinion();
		entity.setKnowId(knowId);
		entity.setScore(score);
		entity.setOpinion(opinion);
		entity.setCreateUser(createUser);
		entity.setState(state);
		entity.setStatus(status);
		return entity;
	}
}